{extend name="admin@public/base_content" /}
{block name="body">}
<body>
{include file="admin@public/common" /}
<div class="container-fluid larry-wrapper">
    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12">
            <section class="panel panel-padding">
                <form class="layui-form" action="{:url('')}">
                    <div class="layui-form">
                        <div class="layui-inline">
                            <div class="layui-input-inline">
                                <input class="layui-input" name="name" value="{$pageMaps.name|default=''}" placeholder="用户姓名">
                            </div>
                        </div>
						<div class="layui-inline">
                            <div class="layui-input-inline">
                                <input class="layui-input" name="mobile" value="{$pageMaps.mobile|default=''}" placeholder="手机号">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <button lay-submit class="layui-btn" lay-filter="search">查找</button>
                        </div>
                    </div>
                </form>
            </section>
        </div>
    </div>
</div>
<div class="layui-form">
    <table class="layui-table lay-even">
        <thead>
        <tr>
            <th width="80">ID</th>
            <th>姓名</th>
            <th>手机号</th>
            <th>参与活动次数</th>
            <th>爽约次数</th>
            <th>最近一次参与时间</th>
            <th width="240">操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach name="list" item="vo"}
        <tr>
            <td>{$vo.id}</td>
            <td>{$vo.name}</td>
            <td>{$vo.mobile}</td>
            <td>{$vo.num}</td>
            <td>{$vo.invalid}</td>
            <td>{:date("Y-m-d H:i",$vo['last_time'])}</td>
            <td>
                <a href="{:url('info',array('id'=>$vo['id']))}" class="layui-btn show_layui layui-btn-mini modal-catch">
                    <i class="iconfont">&#xe653;</i>查看
                </a>

            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
</div>
<div class="text-right">
    <div class="layui-box layui-laypage layui-laypage-molv" id="layui-laypage-1">
        {$_page}
    </div>
</div>
</body>
<script>
</script>
{/block}
{block name="script"}
<script>
    layui.use('default');
	
layui.use('layer', function(){ //独立版的layer无需执行这一句
  var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句
  $("a.show_layui").click(function(){
	  var _self = $(this);
	  layer.open({
		type: 2 //此处以iframe举例
		,title: '查看报名信息'
		,area: ['1000px', '340px']
		,shade: 0
		,maxmin: true
		,offset: [ 't'] 
		,content: _self.attr("href")
		,yes: function(){
		  
		}
		,zIndex: layer.zIndex //重点1
	  });
	  return false;
  });
  
});
</script>
{/block}